﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using StudentManager.BLL;

public partial class Department_test : System.Web.UI.Page
{
    Student student = new Student();

    DataTable dr = new DataTable();


    protected void Page_Load(object sender, EventArgs e)
    {

      //  is(! Page.IsPostBack)
        {
              // student.DisplayStudentDetialsInf(
            string st_id = Request.QueryString["id"].ToString();
            string st_photoUrl = Request.QueryString["photoUrl"].ToString();
            Image1.ImageUrl = st_photoUrl;
           // GridView1.AllowPaging = true;
            //GridView1.AutoGenerateDeleteButton = true;
            //GridView1.AutoGenerateEditButton = true;

          //  DetailsView de = new DetailsView();
         


            if (!Page.IsPostBack)
            {

                dr = student.DisplayStudentDetialsInf(st_id);
                de.DataSource = dr;
               
                //de.Rows[0].Clie = "学号";
                //GridView1.Columns[0].HeaderText = "姓名";
                //GridView1.Columns[0].HeaderText = "学号";
                //GridView1.Columns[0].HeaderText = "学号";
                //GridView1.Columns[0].HeaderText = "学号";
                de.DataBind();
                de.HeaderRow.Cells[0].Text = "学号";
                


            }
        
        
        }
        



    }
}
